package com.qfjy.zhujunwei.impl;

import com.qfjy.zhujunwei.Image;
import com.qfjy.zhujunwei.impl.ProxyImage;

/**
 * @author: zjw
 * @date: 2022/9/13 0013  17:57
 * @version: 1.0
 * @description:
 */
public class ProxyPatternDemo {

    public static void main(String[] args) {
        Image image = new ProxyImage("test_10mb.jpg");

        // 图像将从磁盘加载
        image.display();
        System.out.println("");
        // 图像不需要从磁盘加载
        image.display();
    }
}
